/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.src.dao;

import java.util.ArrayList;
import java.util.Map;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import com.src.pojos.Cls_Menu;
import com.src.utiles.Cls_Parametros;



/**
 *
 * @author Christian
 */
public class Cls_Dao_Menu extends SqlMapClientDaoSupport implements Itf_Dao_Menu{

    public ArrayList<Cls_Menu> obtenerMenuUsuario(Map<String, String> parametros){
        try{
            return (ArrayList<Cls_Menu>)this.getSqlMapClientTemplate().
                    queryForList(Cls_Parametros.FuncionIbt_OBTENER_MENU_USUARIO,parametros);
        }catch(DataAccessException ex){
            ex.printStackTrace();
            return null;
        }
    }
}
